package cn.tedu.kcircle.content.admin.infra.persist;

import cn.tedu.kcircle.content.admin.dao.mapper.ContentAdminMapper;
import cn.tedu.kcircle.content.admin.infra.converter.ContentConverter;
import cn.tedu.kcircle.content.admin.repository.model.ContentUpdateCheckStateModel;
import cn.tedu.kcircle.content.admin.repository.persist.ContentAdminRepository;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Repository;

@Repository
@AllArgsConstructor
public class ContentAdminRepositoryImpl implements ContentAdminRepository {
    private ContentAdminMapper contentAdminMapper;
    private ContentConverter converter;
    @Override
    public int updateCheckStatusById(ContentUpdateCheckStateModel contentUpdateCheckStateModel) {
        return contentAdminMapper.updateCheckState(contentUpdateCheckStateModel);
    }

    @Override
    public int getCheckStateById(Long id) {
        return contentAdminMapper.getCheckStateById(id);
    }
}
